<?php
/*
 * 2021/7/16
 * 7:06
 * User: 2650332702@qq.com
 */

namespace App\Api\Models;

use Illuminate\Database\Eloquent\Model;

class Goods  extends Model
{
    protected $table='cmc_goods';
    //获得一条商品
    static public function OnceGood($id,$allow_field = null)
    {
        return Goods::where('goods_id',$id)->get($allow_field)->toArray()[0];
    }
}
